import request from '@/utils/request'

// 获取系统配置
export function getConfig(params) {
  return request({
    url: '/cms/common/init',
    method: 'get',
    params
  })
}

// 获取验证码
export function getCaptcha(params) {
  return request({
    url: '/cms/common/captcha',
    method: 'get',
    params
  })
}

// 获取分类
export function getCategory(params) {
  return request({
    url: '/cms/common/getCategory',
    method: 'get',
    params
  })
}

// 下拉选择
export function selectPage(params) {
  return request({
    url: '/cms/common/selectpage',
    method: 'get',
    params
  })
}